how to wait until a dynamically included javascript file is properly loaded